import React, { Component } from 'react'
import { Provider } from 'react-redux'
import { createStore, combineReducers } from 'redux';
import Taro from '@tarojs/taro'
import { user, my } from './store/index'


import './app.less'

const reducers = combineReducers({
  user,
  my
})
const store = createStore(reducers)
class App extends Component {

  componentDidMount () {
  }

  componentDidShow () { }

  componentDidHide () { }

  componentDidCatchError () { }

  // this.props.children 是将要会渲染的页面
  render () {
    return (
      <Provider store={store}>
        {this.props.children}
      </Provider>
    )
  }
}

export default App
